package com.zh.familyInfo.service.impl;

import com.zh.common.utils.StringUtil;
import com.zh.familyInfo.dao.IllChronicDao;
import com.zh.familyInfo.domain.IllChronicDO;
import com.zh.familyInfo.service.IllChronicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class IllChronicServiceImpl implements IllChronicService {
	@Autowired
	private IllChronicDao illChronicDao;
	
	@Override
	public IllChronicDO get(String id){
		return illChronicDao.get(id);
	}
	
	@Override
	public List<IllChronicDO> list(Map<String, Object> map){
		return illChronicDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return illChronicDao.count(map);
	}
	
	@Override
	public int save(IllChronicDO illChronic){
		illChronic.setId(StringUtil.generalKeyword());
		return illChronicDao.save(illChronic);
	}
	
	@Override
	public int update(IllChronicDO illChronic){
		return illChronicDao.update(illChronic);
	}
	
	@Override
	public int remove(String id){
		return illChronicDao.remove(id);
	}
	
	@Override
	public int batchRemove(String[] ids){
		return illChronicDao.batchRemove(ids);
	}
	
}
